-$(IPKG_LINUX_ATM):
- mkdir -p $(IDIR_LINUX_ATM)/usr/sbin
- mkdir -p $(IDIR_LINUX_ATM)/lib
- cp $(PKG_BUILD_DIR)/src/br2684/.libs/br2684ctl $(IDIR_LINUX_ATM)/usr/sbin/
- cp $(PKG_BUILD_DIR)/src/lib/.libs/libatm.1.0.0 $(IDIR_LINUX_ATM)/lib
- ln -sf libatm.1.0.0 $(IDIR_LINUX_ATM)/lib/libatm
- ln -sf libatm.1.0.0 $(IDIR_LINUX_ATM)/lib/libatm.1
- $(RSTRIP) $(IDIR_LINUX_ATM)/
- $(IPKG_BUILD) $(IDIR_LINUX_ATM) $(PACKAGE_DIR)
+define Package/linux-atm/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ cp -f $(PKG_INSTALL_DIR)/usr/lib/libatm.so.1 $(1)/usr/lib
+endef